function gitall
    set branch_name (git branch 2> /dev/null | grep \* | sed 's/* //')
    if [ "$branch_name" != "master" ]
        echo "is not master!!!"
        return
    end

    git add -A :/
    if count $argv >/dev/null
      git commit -m "$argv[1]"
    else
      git commit --allow-empty-message -m ""
    end
    git push -u origin master
end
